package com.qianyu.project.service.smj;

import com.qianyu.project.entity.LaborContract;

import java.util.List;
import java.util.Map;

public interface smjLaberService {
    /**
     * 添加合同信息
     * @param create_date
     * @param contract_name
     * @param p_id
     * @param contract_type
     * @param contract_amount
     * @param start_date
     * @param end_date
     * @param labor_org_id
     * @param settle_type
     * @param advance_pay
     * @param deposit_amount
     * @param payment_type
     * @param contract_signatory
     * @param pay_condition
     * @param main_term
     * @param comment
     * @param attach_ids
     * @param amount_upper
     * @return
     */
    String Addlaber(String create_date, String contract_name, String p_id, String contract_type, String contract_amount, String start_date, String end_date, String labor_org_id, String settle_type, String advance_pay, String deposit_amount, String payment_type, String contract_signatory, String pay_condition, String main_term, String comment, String attach_ids,String amount_upper);

    /**
     * 添加工程量清单
     * @param work_content
     * @param unit
     * @param work_count
     * @param unit_price
     * @param id
     */
    void Addlaborworklist(String work_content, String unit, String work_count, String unit_price, String id);

    /**
     * 开启审批流程
     * @param laborContract
     * @return
     */
    Integer FlowLaber(LaborContract laborContract);

    /**
     * 修改文件附录的上传人姓名
     * @param ids
     * @param infoname
     */
    void UpdateInfo(String ids, String infoname);

    /**
     * 获取工程量清单
     * @param id
     */
    List<Map<String ,Object>> getWorkList(String id);

    /**
     * 获取审批流程
     * @param id
     * @return
     */
    List<Map<String, Object>> getfromaudit(String id);
}
